package com.bestcem.xm.member.grpc.service.param.member;

import com.bestcem.xm.common.core.constant.RegTypes;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

/**
 * 获取联系人信息 参数校验
 *
 * @author yf.wang <yf.wang@idiaoyan.com>
 * @version V1.0
 * @date 2021/7/17
 */

@Getter
@Setter
public class GetMemberParam {

    @NotNull(message = "组织id不能为空")
    @Pattern(regexp = RegTypes.OBJECT_ID, message = "组织id格式错误")
    private String orgId;


    @NotNull(message = "用户id不能为空")
    @Pattern(regexp = RegTypes.OBJECT_ID, message = "用户id格式错误")
    private String userId;

    @NotNull(message = "联系人id不能为空")
    @Pattern(regexp = RegTypes.OBJECT_ID, message = "联系人id格式错误")
    private String id;
}
